// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning;

public sealed partial class DatafeedRunningState
{
	/// <summary>
	/// <para>Indicates if the datafeed is "real-time"; meaning that the datafeed has no configured `end` time.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("real_time_configured")]
	public bool RealTimeConfigured { get; init; }

	/// <summary>
	/// <para>Indicates whether the datafeed has finished running on the available past data.<br/>For datafeeds without a configured `end` time, this means that the datafeed is now running on "real-time" data.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("real_time_running")]
	public bool RealTimeRunning { get; init; }

	/// <summary>
	/// <para>Provides the latest time interval the datafeed has searched.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("search_interval")]
	public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RunningStateSearchInterval? SearchInterval { get; init; }
}